<template>
    <div>

User


 <el-button size="mini" type="danger" @click="logout"
                >退出</el-button
              >
    </div>
</template>

<script>
export default {
    data() {
        return {

        };
    },
    created() {

    },
    mounted() {

    },
    methods: {

        logout() {
            //清空token  
            localStorage.removeItem('isLogin')

            //退出登录 
            this.$router.push('/login')
        }

    }
};
</script>

<style scoped>

</style>
